package com.ruoyi.common.core.domain.entity;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 机构动态信息对象 zx_institution_moment
 * 
 * @author ruoyi
 * @date 2021-05-08
 */
public class InstitutionMoment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 动态id */
    private Long mId;

    /** 动态标题 */
    @Excel(name = "动态标题")
    private String mTitle;

    /** 动态正文 */
    @Excel(name = "动态正文")
    private String mContent;

    /** 机构id */
    @Excel(name = "机构id")
    private Integer itId;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date releaseTime;

    /** 点赞量 */
    @Excel(name = "点赞量")
    private Integer mLikes;

    /** 回复数 */
    @Excel(name = "回复数")
    private Integer mReplynum;

    /** 更新时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "更新时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    public void setmId(Long mId)
    {
        this.mId = mId;
    }

    public Long getmId()
    {
        return mId;
    }
    public void setmTitle(String mTitle) 
    {
        this.mTitle = mTitle;
    }

    public String getmTitle() 
    {
        return mTitle;
    }
    public void setmContent(String mContent) 
    {
        this.mContent = mContent;
    }

    public String getmContent() 
    {
        return mContent;
    }
    public void setItId(Integer itId) 
    {
        this.itId = itId;
    }

    public Integer getItId() 
    {
        return itId;
    }
    public void setReleaseTime(Date releaseTime) 
    {
        this.releaseTime = releaseTime;
    }

    public Date getReleaseTime() 
    {
        return releaseTime;
    }
    public void setmLikes(Integer mLikes) 
    {
        this.mLikes = mLikes;
    }

    public Integer getmLikes() 
    {
        return mLikes;
    }
    public void setmReplynum(Integer mReplynum) 
    {
        this.mReplynum = mReplynum;
    }

    public Integer getmReplynum() 
    {
        return mReplynum;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("mId", getmId())
            .append("mTitle", getmTitle())
            .append("mContent", getmContent())
            .append("itId", getItId())
            .append("releaseTime", getReleaseTime())
            .append("mLikes", getmLikes())
            .append("mReplynum", getmReplynum())
            .append("time", getTime())
            .toString();
    }
}
